<cfinclude template="/ecada/header.cfm">
<cfoutput>
<script type="text/javascript">

			$("##getname").validate({
				rules: {
						thename: { required: true, minlength: 1, maxlength: 256 },
						UserNme: { required: true, minlength: 4,maxlength: 40},
						email: { required: true, email: true, maxlength: 256},
						thepassword: { required: true, minlength: 8, maxlength: 22}				
					}
				});

// -->
</script>
 
<body onLoad="$('##thename').focus()" >
 
<cfif not isDefined("session.id")>
	<h1>Your Details</h1>
	<form name="getname" id="getname" action="reg.cfm" method="post">
		<table border=1 style="border: 3px solid black;">
			<tr>
				<td>
		       	Your Name:
		      </td>
		      <td>
		      	<input type="text"  name="thename" id="thename"/>
		      </td>
			</tr>
		   <tr>
		   	<td>
		      	User Name:
		      </td>
		      <td>
		      	<input type="text"  name="UserNme" id="userNme" />
		      </td>
			</tr>
		   <tr>
		   	<td>Email Address:</td>
		   	<td>
		   		<input type="text" name="email" id="email"/>
		   	</td>
		   </tr>
		   <tr>
		   	<td> Password:</td>
		   	<td>
		   		<input type="password"  name="thepassword" id="thepassword"/>
				</td>
			</tr>
			<tr>
				<td colspan=2 align="center">
					<div class="ajax-fc-container"></div>
				</td>
			</tr>
			<tr>
				<td colspan=2 align="center">
		 			<button class="ui-state-default ui-corner-all" style="float: right;" type="submit" value="Click to Create Account">
		 				Click to Create Account
		 			</button>
		      </td>
		   </tr>
		</table>
	</form>
<cfelse>
	<cflocation url="/ecada/index.cfm" addToken="no">
</cfif>

</cfoutput>
<cfinclude template="/ecada/footer.cfm">
